<script setup lang="ts">
import { useRoute } from 'vue-router'
import { watch } from 'vue'

const route = useRoute()
watch(
    () => route.path,
    () => {
        window.$wujie?.bus.$emit('sub-route-change', '/proa' + route.path)
    },
    { deep: true }
)
</script>

<template>
    <router-view #="{ Component }">
        <component :is="Component" />
    </router-view>
</template>
